package com.xjzd.std.lambda;

import java.lang.reflect.Method;
import java.util.function.BinaryOperator;

public class Demo {

    public static void main(String[] args) {
        BinaryOperator<Integer> lambda = (a, b) -> a + b;
        System.out.println(lambda.apply(1, 2));

        for (Method method : Demo.class.getDeclaredMethods()) {
            System.out.println(method.getName());
        }
    }
}
